package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    /**
     * 查询当前登录用户的所有地址信息
     * @return
     */
    List<AddressBook> queryAllAddressBook();

    /**
     * 新增地址
     * @param addressBook
     * @return
     */
    void addAddressBook(AddressBook addressBook);


    /**
     * 设置默认地址
     * @param addressBook
     * @return
     */
    void setDefaultAddressBook(AddressBook addressBook);

    void update(AddressBook addressBook);


    AddressBook queryAddressBookById(Long id);
    /**
     * 根据Id删除地址
     * @return
     */
    void deleteAddressBookById(Long id);
}
